/* ******************************************************************
 * This file is part of the escal project and distributed under the
 * terms of the GNU General Public License Version 3
 * Copyright (C) 2008 Epocher (xijiaosdq@gmail.com)
 * See COPYING file for licensing information.
 *******************************************************************/

#include "scanner_thread.h"
#include <QtDebug>
#include <Python.h>

ScannerThread::ScannerThread(QObject *parent)
	:QThread(parent)
{
	
};

void ScannerThread::run(){
	qDebug() << "ScannerThread::run()";
	QByteArray cmd;
	cmd.append("execfile('").append(scriptPath).append("')\n");
	qDebug() << cmd;
	PyRun_SimpleString(cmd);
	emit finished();
	qDebug() << "ScannerThread::run() out";
};
